<template>
  <div class="brand">
    <div class="head">
      <img
        :src="brand.list_pic_url"
        alt=""
      >
      <h2>{{brand.name}}</h2>
    </div>
    <div class="foot">
      <p>{{brand.simple_desc}}</p>
    </div>
  </div>
</template>

<script>
import { GetBrandDetail } from "@/request/api.js";
export default {
  data() {
    return {
      // 品牌数据
      brand: {},
    };
  },
  created() {
    GetBrandDetail({
      id: this.$route.query.id,
    }).then((res) => {
      if (res.errno == 0) {
        // console.log("res", res);
        this.brand = res.data.brand;
      }
    });
  },
};
</script>

<style lang="less" scoped>
.brand {
  margin: 0;
  padding: 0;
  border: 0;
}
.head {
  width: 100%;
  position: relative;
  img {
    display: block;
    width: 100%;
  }
  h2 {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    height: 30px;
    line-height: 30px;
    margin: auto;
    font-size: 20px;
    text-decoration: underline;
    color: #fff;
  }
}
.foot p {
  background: #fff;
  font-size: 18px;
  text-align: center;
  padding: 20px 10px;
  line-height: 26px;
  color: #666;
}
</style>